<?php
/**
 * Created by PhpStorm.
 * User: chl
 * Date: 2017/3/21 0021
 * Time: 16:53
 */
namespace app\admin\validate;
use think\Validate;
class Column extends Validate{
    protected $rule = [
        ['title','require|unique:column','栏目标题必填|栏目标题已存在'],
        ['sort','number','排序必须是数字'],
    ];
    protected $scene = [
        'columnAdd' =>['title','sort'],
        'columnSave'=>['title','sort'],
    ];
}